package cn.lysy.xiaoruan.services;

import cn.lysy.xiaoruan.javabean.Result;
import cn.lysy.xiaoruan.javabean.common;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import cn.lysy.xiaoruan.javabean.userLogin;
/**
 * Created by lirun on 2017/9/29.
 */

public interface UserService {
    //用户登陆
    @GET("login")
    Call<userLogin> login(
            @Query("utelephone") String utelephone,
            @Query("upassword") String password
    );
    //用户注册
    @GET("userReg")
    Call<Result> Reg(
            @Query("uloginname") String loginname,
            @Query("uname") String uname,
            @Query("upassword") String password,
            @Query("check_upassword") String ck_upassword,
            @Query("utelephone") String utelephone,
            @Query("uemail") String uemail
    );
    //用户注销
    @GET("logout")
    Call<common> logout(
            @Query("uid") String uid
    );
}
